package org.issaclu.springbootmybatis.user.dto;

import org.issaclu.springbootmybatis.house.dto.HouseInfo;
import org.issaclu.springbootmybatis.role.dto.RoleInfo;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

public class UserInfo {
    private String id;
    private String userName;
    private int age;
    private Date birthday;
    private String introductionText;
    private byte[] avatar;
    // 一对一情况
    private UserDetail detail;

    // 一对多情况
    private List<RoleInfo> roleInfoList;
    private List<HouseInfo> houseList;

    public List<HouseInfo> getHouseList() {
        return houseList;
    }

    public void setHouseList(List<HouseInfo> houseList) {
        this.houseList = houseList;
    }

    public List<RoleInfo> getRoleInfoList() {
        return roleInfoList;
    }

    public void setRoleInfoList(List<RoleInfo> roleInfoList) {
        this.roleInfoList = roleInfoList;
    }

    public UserDetail getDetail() {
        return detail;
    }

    public void setDetail(UserDetail detail) {
        this.detail = detail;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getIntroductionText() {
        return introductionText;
    }

    public void setIntroductionText(String introductionText) {
        this.introductionText = introductionText;
    }

    public byte[] getAvatar() {
        return avatar;
    }

    public void setAvatar(byte[] avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id='" + id + '\'' +
                ", userName='" + userName + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", introductionText='" + introductionText + '\'' +
                ", detail=" + detail +
                ", roleInfoList=" + roleInfoList +
                '}';
    }
}
